import App from '../App'
import Login from '../pages/Login'
import Register from '../pages/Register'

import Home from '../pages/Home/Home'
import Analysis from '../pages/Analysis/Analysis'
import Monitor from '../pages/Analysis/Monitor'
import Work from '../pages/Analysis/Work'

import { BrowserRouter, Routes, Route } from 'react-router-dom'

const BaseRouter = () => (
  <BrowserRouter>
    <Routes>
      <Route path="/" element={<App />}>
        <Route path="/home" element={<Home />} />
        <Route path="/analysis" element={<Analysis />} />
        <Route path="/monitor" element={<Monitor />} />
        <Route path="/work" element={<Work />} />
      </Route>
      <Route path="/login" element={<Login />} />
      <Route path="/register" element={<Register />} />
    </Routes>
  </BrowserRouter>
)

export default BaseRouter
